import {Component} from "@angular/core";
import {ROUTER_PROVIDERS, RouteConfig, ROUTER_DIRECTIVES} from "@angular/router-deprecated";
import {HomeComponent} from "./home.component";
import {ContactComponent} from "./contact.component";
import {AboutComponent} from "./about.component";

@Component({
    selector: 'my-app',
    templateUrl: "./app/app.html",
    directives: [ROUTER_DIRECTIVES],
    providers: [ROUTER_PROVIDERS]
})
@RouteConfig([
    {path: '/', name: 'root', redirectTo: ['Home']},
    {path: "/home", name: "Home", component: HomeComponent, useAsDefault: true},
    {path: "/contact", name: "Contact", component: ContactComponent},
    {path: "/about", name: "About", component: AboutComponent},
])
export class AppComponent {

}
